﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IGolovkine.Core.Diagnostics;

namespace IGolovkine.ShoutCastRipper
{
    public class StationClientContentReceivedEventArgs : StationClientContentTitleEvent
    {
        private readonly byte[] _buffer;
        private readonly TimeSpan _contentLength;

        public StationClientContentReceivedEventArgs(byte[] buffer, string contentTitle)
            : base(contentTitle)
        {
            Debug.NotNullOrEmpty(() => contentTitle);
            Debug.NotDefault(() => buffer);
            Debug.Expect(() => buffer.Length != 0);

            _buffer = buffer;
        }

        public byte[] Data
        {
            get { return _buffer; }
        }
    }
}
